#include "mode_light_length_config.h"
u16 light_length;
DIRECTION_INFO direction;
void set_light_length(u16 length)
{
    if ((length>0)&(length<101))
    {
        light_length=length;
        LOG_INFO("light_length %d\n",light_length);
    }
}

u16 get_light_length() //设置灯珠颗粒数
{
    return light_length;
}

u16 get_color_length() //设置待发送数据的长度
{
    return (get_light_length()*3);
}

u16 get_buffer_length() //设置spi待发送数据的长度
{
    return (get_color_length()*8);
}


void set_light_direction(DIRECTION_INFO dire)
{
    direction = dire;
}

DIRECTION_INFO get_light_direction()
{
    return direction;
}








